﻿using System.ComponentModel;
using System.Web.UI;
using Ext.Net;

namespace KamLib.Controls
{
    [ParseChildren(true, "Items")]
    public class RecordFormPanel : FormPanel
    {

        [DefaultValue("0 -40")]
        public override string Anchor
        {
            get { return ViewState.Try("Anchor", "0 -40"); }
            set { base.Anchor = value; }
        }

        [DefaultValue(true)]
        public override bool Border
        {
            get { return ViewState.Try("Border", true); }
            set { base.Border = value; }
        }


        //[DefaultValue(true)]
        //public override bool Collapsible
        //{
        //    get { return ViewState.Try("Collapsible", true); }
        //    set { base.Collapsible = value; }
        //}

        //[DefaultValue(CloseAction.Close)]
        //public override CloseAction CloseAction
        //{
        //    get { return ViewState.Try("CloseAction", CloseAction.Close); }
        //    set { base.CloseAction = value; }
        //}
        

        //[DefaultValue("Anchor")]
        //public override string Layout
        //{
        //    get { return ViewState.Try("Layout", "Anchor"); }
        //    set { base.Layout = value; }
        //}

    }

}